//
//  DDGoodsDetailsObj.h
//  Dingdong
//
//  Created by 程强 on 16/11/26.
//  Copyright © 2016年 程强. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DDStoreObj.h"
#import "DDGoodsObj.h"

@class DDGoodsGallery;
@class DDProductObj;
@class DDGoodsSpecValue;
@class DDGoodsSpec;
@class DDGoodsSpecSet;

@interface DDGoodsDetailsObj : NSObject
@property (strong, nonatomic) DDStoreObj *store;
@property (copy, nonatomic) NSString *goods_info_url;
@property (strong, nonatomic) DDGoodsObj *goods;
@property (strong, nonatomic) NSArray <DDGoodsGallery *>*galleryList;
@property (strong, nonatomic) DDGoodsSpecSet *spec;
@end


/**
 轮播图
 */
@interface DDGoodsGallery : NSObject
@property (strong, nonatomic) NSNumber *img_id;
@property (strong, nonatomic) NSNumber *goods_id;
@property (copy, nonatomic) NSString *thumbnail;
@property (copy, nonatomic) NSString *small;
@property (copy, nonatomic) NSString *big;
@property (copy, nonatomic) NSString *original;
@property (copy, nonatomic) NSString *tiny;
@property (strong, nonatomic) NSNumber *isdefault;
@property (strong, nonatomic) NSNumber *sort;
@end


/**
 规格集合
 */
@interface DDGoodsSpecSet : NSObject
@property (strong, nonatomic) NSNumber *productid;
@property (strong, nonatomic) NSNumber *have_spec;
@property (strong, nonatomic) NSArray <DDProductObj *>*productList;
@property (strong, nonatomic) NSArray <DDGoodsSpec *>*specList;
@end


/**
 规格Key
 */
@interface DDGoodsSpec : NSObject
@property (strong, nonatomic) NSNumber *spec_id;
@property (copy, nonatomic) NSString *spec_name;
@property (copy, nonatomic) NSString *spec_show_type;
@property (strong, nonatomic) NSNumber *spec_type;
@property (copy, nonatomic) NSString *spec_memo;
@property (strong, nonatomic) NSArray <DDGoodsSpecValue *>*valueList;
@end


/**
 规格value
 */
@interface DDGoodsSpecValue : NSObject
@property (strong, nonatomic) NSNumber *spec_value_id;
@property (strong, nonatomic) NSNumber *spec_id;
@property (copy, nonatomic) NSString *spec_value;
@property (copy, nonatomic) NSString *spec_image;
@property (copy, nonatomic) NSString *spec_order;
@property (copy, nonatomic) NSString *spec_type;
@end


/**
 单个商品
 */
@interface DDProductObj : NSObject
@property (strong, nonatomic) NSNumber *product_id;
@property (strong, nonatomic) NSNumber *goods_id;
@property (copy, nonatomic) NSString *name;
@property (copy, nonatomic) NSString *sn;
@property (strong, nonatomic) NSNumber *store;
@property (strong, nonatomic) NSNumber *enable_store;
@property (strong, nonatomic) NSNumber *price;
@property (strong, nonatomic) NSNumber *cost;
@property (strong, nonatomic) NSNumber *weight;
@property (copy, nonatomic) NSString *specs;
@property (copy, nonatomic) NSString *goodsLvPrices;
@property (strong, nonatomic) NSArray <DDGoodsSpecValue *>*specList;
@property (copy, nonatomic) NSString *specsvIdJson;
@end
